package net.ibizsys.psstudio.ms.springboot.api.psstudioapi;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication(exclude = {
	org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
	org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientAutoConfiguration.class
	   })
@Configuration
@ServletComponentScan
@ComponentScans({
	@ComponentScan(basePackages = {"net.ibizsys.psstudio.ms.springboot.api"}),
	@ComponentScan(basePackages = {"net.ibizsys.psstudio.ms.springboot.api.psstudioapi"}),
})
@EnableAutoConfiguration
public class PSStudioApiMain extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplicationBuilder builder = new SpringApplicationBuilder(PSStudioApiMain.class);
		builder.run(args);
	}
	
    
}